package com.apollo.demo.exception;

public abstract  class BaseException extends RuntimeException {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private String data;

    public BaseException(String msg, String data) {
        super(msg);
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public abstract int getCode();

}

